var _Step = require('scenes/game/toturial/step.js');
var _inherit = require('core/inherit.js');
var _global = require('global/global.js');

function Step() {
    _Step.call(this);
    this.mCount = 0;
}
_inherit(Step, _Step);
Step.prototype.onAbsorbStart = function (accept) {
    if (accept) {
        if (++this.mCount >= 5) {
            this.mToturial.hideFooter();
            this.mToturial.nextStep();
            this.mToturial = null;
            this.mLocal = null;
        }
    }
};
Step.prototype.onStart = function (toturial, local) {
    this.mToturial = toturial;
    this.mLocal = local;
    this.mToturial.showFooterTip('ITS OVER WHEN THE BOARD FILLS UP');

    var header = this.mLocal.find('ui.header');
    var title = this.mLocal.find('gamearea').getTitleView();
    header.addNotExist(title);
    title.showButtons();
};

module.exports = Step;